#!/usr/bin/env php
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------

// 定义项目路径
define('APP_PATH', __DIR__ . '/application/');
define('APP_MODULE','command');

require __DIR__ . '/thinkphp/base.php';
require APP_PATH . '/config/cacheKey.php';


\think\Loader::addNamespace('common', dirname(__FILE__) .'/common/');

// 通过DotEnv导入配置文件
$configPath = realpath(APP_PATH . '/config');
$configName = file_exists($configPath . '/.env') ? '.env' : '.env.example';
$dotEnv = new \Dotenv\Dotenv($configPath, $configName);
$dotEnv->load();
require APP_PATH . '/config/sell66.php'; 
// 执行应用
\think\App::initCommon();
\think\Console::init();
